package cn.cheneyjoo.service.impl;

import cn.cheneyjoo.Dao.IDeptDao;
import cn.cheneyjoo.model.Dept;
import cn.cheneyjoo.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class DeptServiceImpl implements IDeptService {
    @Autowired
    private IDeptDao deptDao;

    /**
     * 查询全部部门信息
     *
     * @return
     */
    @Override
    public List<Dept> findAll() {
        return deptDao.findAll();
    }
}
